import moment from 'moment'
export const timeFormat = (date: Date) => {
  if (date) {
    return moment(date).format('YYYY-MM-DD HH:mm:ss')
  } else {
    return null
  }
}
